<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
<body>
	<ui:composition>

		<h:form id="form">

			<p:panel id="panel" header="Acesso Restrito"
				style="margin-bottom:10px;width:260px;">
				<p:messages id="messages" />
				<h:panelGrid columns="4">
					<h:outputLabel for="login" value="Login: " />
					<p:inputText id="login" value="#{autenticadorBean.usuario}"
						required="true" label="login" size="15">
						<f:validateLength minimum="2" />
					</p:inputText>

					<p:commandButton icon="ui-icon-key" title="Recuperar Senha" />
					<p:message for="login" />

					<h:outputLabel for="senha" value="Senha: " />
					<p:inputText id="senha" value="#{autenticadorBean.senha}"
						required="true" label="Senha" size="15" />

					<p:commandButton icon="ui-icon-locked" title="Logar" action="#{autenticadorBean.autentica}" />
					<p:message for="senha" />
				</h:panelGrid>
			</p:panel>

		</h:form>

		<p:calendar value="#{calendarBean.date1}" locale="pt" mode="inline" id="inlineCal" />

	</ui:composition>
</body>
</html>